// 根据body的属性值来判断主题
body[theme-mode='dark'] {
    --select-background-color: #1A1A1A;
    --sekect-chat-item-background-color: #2D2D2D;
    --select-group-item-background-color: #242424;
    --message-item-content-background-color: #262626;
}

body:not([theme-mode='dark']) {
    --select-background-color: #EAEAEA;
    --sekect-chat-item-background-color: #F5F5F5;
    --select-group-item-background-color: #E9E9E9;
    --message-item-content-background-color: #FFFFFF;
}


.content-header {
    height: 65px;
}

.main-content {
    height: calc(100vh - 65px);

    .content-function {
        height: 20px;
        margin-left: 20px;
        margin-top: 10px;
        width: 100%;
        align-items: center;

    }


}

.icon-function {
    fill: var(--semi-color-text-0) !important;
    cursor: pointer;
}

.icon-function:hover {
    fill: #0065C9 !important;
}

.content-divider {
    height: 1px;
    background-color: var(--verticle-division-color);
}

.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-box {
    flex-grow: 1;
}

.resizable-box {}

.draggable-line {
    height: 2px;
    background-color: var(--verticle-division-color);
    cursor: ns-resize;
}



::view-transition-old(root) {
    animation: none;
}

::view-transition-new(root) {
    mix-blend-mode: normal;
    animation: clip .5s ease-in;
}

@keyframes clip {
    from {
        clip-path: circle(0% at var(--x) var(--y));
    }

    to {
        clip-path: circle(100% at var(--x) var(--y));
    }
}

.dark {
    background-color: #111;
    color-scheme: dark;
}

.message {
    float: left;
    width: 75%;
    height: 100%;
}

.message-item-content {
    margin-top: 5px;
    padding: 8px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    background-color: var(--message-item-content-background-color);
}

.message-item-content-user {}

.grou-user-item {
    height: 25px;
    max-height: 25px;
    cursor: pointer;
    width: 100%;
}

.grou-user-item-content {
    margin: 5px;
    height: 25px;
    max-height: 25px;
    border-radius: 8px;
}

.grou-user-item-content:hover {
    background-color: var(--select-group-item-background-color);
}


.user-group {
    .semi-list-items {
        overflow: auto;
        max-height: calc(100vh - 120px);
    }
}

.emoji {
    height: 350px;
    width: 450px;
}

.emoji-item {
    user-select: none;
    border-radius: 8px;
    padding: 6px;
}

.emoji-item:hover {
    background-color: var(--user-tab-background-color) ;
}

.emoji-select {
    background-color: #0066CC !important;
    border-radius: 8px;
}

.emoji-menu {
    height: 40px;
    float: left;
    border-radius: 8px;
    margin: 5px;
}

.emoji-menu:hover {
    background-color: var(--chat-panel-background-color);
}

.image-menu{
    background-color: var(--message-item-content-background-color);
    color: var(--semi-color-text-0);
}

.image-menu-item{
    border-radius: 8px;
    text-align: center;
    padding: 8px;
    cursor: pointer;
}

.image-menu-item:hover{
    background-color: var(--sekect-chat-item-background-color);
}